import getlink from "@/api/getapi.js"
let MyHistoryM = {
    state:{
        history:""
    },
    mutations:{
        UPHISTORYDATA(state,payload){
            state.history=payload
        }
    },
    actions:{
        LINK_HISTORY_DATA(conhistory,payload){
            // console.log(context)
            getlink(payload).then((ok)=>{
                console.log(ok.data.history,"history")
                conhistory.commit("UPHISTORYDATA",ok.data.history)
            }).catch((err)=>{
                console.log(err)
            })
        }
    }
}

export default MyHistoryM;
